package com.hupu.jrs.ui.login

import com.hupu.jrs.ui.BasePresenter
import com.hupu.jrs.ui.BaseView

/**
 * Created by sll on 2016/5/11.
 */
interface LoginContract {

    interface View : BaseView {
        fun showLoading()

        fun hideLoading()

        fun showUserNameError(error: String)

        fun showPassWordError(error: String)

        fun loginSuccess()
    }

    interface Presenter : BasePresenter<View> {
        fun login(userName: String, passWord: String)
    }
}
